package com.hzlj.position.locate.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.common.base.core.JacksonTypeHandlerIgnoreNull;
import com.hzlj.position.locate.common.dto.differentiationConfig.DifferentiationConfigExtDTO;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * 独立业务-配置(DifferentiationConfig)实体类
 *
 * @author makejava
 * @since 2024-08-19 16:57:42
 */
@Data
@ToString
@TableName(value="differentiation_config",autoResultMap = true)
public class DifferentiationConfig {
    
    @TableId(type = IdType.AUTO,value = "id")
    private Long id;
    /**
    * 所属时间-yyyyMMdd
    */
    @TableField(value = "type")
    private String type;
    /**
    * 机构code
    */
    @TableField(value = "jg_code")
    private String jgCode;
    /**
    * 所属org的名称
    */
    @TableField(value = "jg_name")
    private String jgName;
    /**
    * 发送的对象(工作人员)
    */
    @TableField(value = "roles")
    private String roles;
    /**
    * 配置,json-DifferentiationConfigExtDTO
    */
    @TableField(value = "ext",typeHandler = JacksonTypeHandlerIgnoreNull.class)
    private DifferentiationConfigExtDTO ext;
    /**
    * 使用业务
    */
    @TableField(value = "handler")
    private String handler;
    /**
    * 是否有效
    */
    @TableField(value = "valid")
    private Boolean valid;
    
    @TableField(value = "create_time")
    private Date createTime;
}
